﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFSQLiteOneToManay
{
    [Table("Coordinate")]
    public class Coordinate : BaseDomain
    {
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Int64 ID { get; set; }
        public string CID { get; set; }
        public int X { get; set; }
        public int Y { get; set; }
        public int Type { get; set; }
        public int Value { get; set; }
        public int Diff { get; set; }
        [ForeignKey("CID")]
        public virtual InspItemRecord IR { get; set; }
        public override string ToString()
        {
            return string.Format("{0},{1},{2},{3}", X, Y, Type, Value, Diff);
        }
    }
}
